/*
 * Copyright (C) 2015-2018 EPAM Systems
 *
 * This file is part of Indigo ELN.
 *
 * Indigo ELN is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Indigo ELN is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Indigo ELN.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

@import 'variables.less';
@import 'mixin.less';
@import 'helper.less';

/******************CONTROLS*********************/

.controls-row {
  background-color: @controls-row-bg;
}

.controls-list {
  border-bottom: @controls-list-border;
  .clearfix();

  > li {
    float: left;
    position: relative;
    border-left: @controls-list-border;

    > a.disabled {
      opacity: 0.5; pointer-events: none;
    }
    > a {
      color: @controls-list-item-color;
      display: block;
      font-size: @controls-list-item-size;
      .h-w(@controls-list-item-height, @controls-list-item-width);
      line-height: @controls-list-item-height;
      text-align: center;
      .transition(all, 0.2s, linear);

      & .icon{
        display: inline-block;
      }

      &:hover, &:focus {
        background-color: @controls-list-item-hover-bg;
        color: @controls-list-item-hover-color;

        .tooltip-icon-header {
          display: block;
        }
      }
    }
    .item-null-link {
      &:hover,
      &:focus {
        background-color: transparent;
      }
    }
    &:first-child {
      border-left: none;
    }
    &:last-child {
      border-right: @controls-list-border;
    }
  }
}

.tooltip-icon-header  {
  color: @tooltip-controls-color;
  font: @tooltip-size @tooltip-family;
  display: none;
  .position-abs-top-left(50%, -24px);
  .transform-center(-50%, 0);
  white-space: nowrap;
  z-index: 1000;
}
